<template>
<div class="container_1">
    <h2>子组件2</h2>
    <p>计数是：{{ count }}</p>
    <button @click="count ++">加1</button>
</div>
</template>

<script setup>
import {ref} from 'vue'

const count = ref(0)
</script>

<style scoped>
.container_1{
    background-color: rgb(130, 215, 205);
    border-radius: 15px;
    padding: 10px;
    margin:10px;
}
</style>